<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
		<script src="index.js?a=1"></script>
</head>
<body>

</body>
<script>
	// 链式调用
	new Promise((resolve, reject) => {
		resolve(100);
	}).then(value => {
		console.log("p2", value + 1);// 101
		return value + 1;
	}).then(value => {
		console.log("p3", value + 1);// 102
		return value + 1;
	}).then(value => {
		console.log("p4", value + 1);// 103
		return value + 1;
	}).then(value => {
		console.log("p5", value + 1);// 104
		return value + 1;
	}).then(value => {
		console.log("p6", value + 1);// 105
		return value + 1;
	})
</script>
</html>